<?php
	//string $host=null;
	//string $user=null;
	 //$password=null;
	 //$database=null;
	$host = "localhost";//"mysql-server01";
	$user = "root";//"dinhvanhieucb";
	$password = "";//"At2MDFbrx12";
	$database = "webtom";//"dinhvanhieucb";
	$connect = mysql_connect($host, $user, $password);	
	if (!$connect)
	{
		die('Could not connect: ' . mysql_error());
		exit;
	}	
	//Dùng mysql_select_db() để chọn CSDL mamalinh
	$db_selected = mysql_select_db("$database", $connect);
	if (!$db_selected)
	{
		die ("Can\'t use test_db : " . mysql_error());
	}
	mysql_query("set names 'utf8'");
?>